package _5_Create._5_2_Builder._5_2_2_complete.Director;

import _5_Create._5_2_Builder._5_2_2_complete.Builder.Builder;

public class Director {
    Builder builder;

    public Director(Builder builder){
        this.builder = builder;
    }

    public void construct(String toAddress,String fromAddress){
        builder.buildFrom(fromAddress);
        builder.buildTo(toAddress);
        builder.buildSubject();
        builder.sendMessage();
    }
}
